<?php

namespace app\common\model;

use think\Model;
use think\Request;

/**
 * @property int $label_id
 * @property string $create_time
 * @property string $label_items 标签选项
 * @property string $label_title 标签标题
 * @property string $update_time
 */
class Label extends BaseModel
{
    // 表名
    protected $table = 'label';
    protected $pk = 'label_id';
    const primaryKey = 'label_id';

    // 追加属性
    protected $append = [

    ];

    public static function __make(Request $request)
    {
        return (new self())->find($request->param(self::primaryKey));
    }
}
